import * as storeObj from '@/api/jcsz/xxbzwh.js'
const state = {}
const mutations = {}
let actions = {} // eslint-disable-line
// 动态设置actions
for (const key in storeObj) {
  actions[key] = ({ state }, data) => {
    return new Promise((resolve, reject) => {
      storeObj[key](data).then((res) => {
        resolve(res)
      }).catch((err) => { reject(err) })
    })
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
